package com.autohome.wz.business.coupon.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CouponCodeSellerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CouponCodeSellerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdIsNull() {
            addCriterion("seller_batch_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdIsNotNull() {
            addCriterion("seller_batch_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdEqualTo(Integer value) {
            addCriterion("seller_batch_id =", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdNotEqualTo(Integer value) {
            addCriterion("seller_batch_id <>", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdGreaterThan(Integer value) {
            addCriterion("seller_batch_id >", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("seller_batch_id >=", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdLessThan(Integer value) {
            addCriterion("seller_batch_id <", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdLessThanOrEqualTo(Integer value) {
            addCriterion("seller_batch_id <=", value, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdIn(List<Integer> values) {
            addCriterion("seller_batch_id in", values, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdNotIn(List<Integer> values) {
            addCriterion("seller_batch_id not in", values, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdBetween(Integer value1, Integer value2) {
            addCriterion("seller_batch_id between", value1, value2, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andSellerBatchIdNotBetween(Integer value1, Integer value2) {
            addCriterion("seller_batch_id not between", value1, value2, "sellerBatchId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNull() {
            addCriterion("open_id is null");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNotNull() {
            addCriterion("open_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpenIdEqualTo(String value) {
            addCriterion("open_id =", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotEqualTo(String value) {
            addCriterion("open_id <>", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThan(String value) {
            addCriterion("open_id >", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("open_id >=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThan(String value) {
            addCriterion("open_id <", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThanOrEqualTo(String value) {
            addCriterion("open_id <=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLike(String value) {
            addCriterion("open_id like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotLike(String value) {
            addCriterion("open_id not like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIn(List<String> values) {
            addCriterion("open_id in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotIn(List<String> values) {
            addCriterion("open_id not in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdBetween(String value1, String value2) {
            addCriterion("open_id between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotBetween(String value1, String value2) {
            addCriterion("open_id not between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNull() {
            addCriterion("seller_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerIdIsNotNull() {
            addCriterion("seller_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerIdEqualTo(Integer value) {
            addCriterion("seller_id =", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotEqualTo(Integer value) {
            addCriterion("seller_id <>", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThan(Integer value) {
            addCriterion("seller_id >", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("seller_id >=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThan(Integer value) {
            addCriterion("seller_id <", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdLessThanOrEqualTo(Integer value) {
            addCriterion("seller_id <=", value, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdIn(List<Integer> values) {
            addCriterion("seller_id in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotIn(List<Integer> values) {
            addCriterion("seller_id not in", values, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdBetween(Integer value1, Integer value2) {
            addCriterion("seller_id between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("seller_id not between", value1, value2, "sellerId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIsNull() {
            addCriterion("seller_activity_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIsNotNull() {
            addCriterion("seller_activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdEqualTo(String value) {
            addCriterion("seller_activity_id =", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotEqualTo(String value) {
            addCriterion("seller_activity_id <>", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdGreaterThan(String value) {
            addCriterion("seller_activity_id >", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdGreaterThanOrEqualTo(String value) {
            addCriterion("seller_activity_id >=", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLessThan(String value) {
            addCriterion("seller_activity_id <", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLessThanOrEqualTo(String value) {
            addCriterion("seller_activity_id <=", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLike(String value) {
            addCriterion("seller_activity_id like", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotLike(String value) {
            addCriterion("seller_activity_id not like", value, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdIn(List<String> values) {
            addCriterion("seller_activity_id in", values, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotIn(List<String> values) {
            addCriterion("seller_activity_id not in", values, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdBetween(String value1, String value2) {
            addCriterion("seller_activity_id between", value1, value2, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdNotBetween(String value1, String value2) {
            addCriterion("seller_activity_id not between", value1, value2, "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdIsNull() {
            addCriterion("seller_allowance_id is null");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdIsNotNull() {
            addCriterion("seller_allowance_id is not null");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdEqualTo(String value) {
            addCriterion("seller_allowance_id =", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdNotEqualTo(String value) {
            addCriterion("seller_allowance_id <>", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdGreaterThan(String value) {
            addCriterion("seller_allowance_id >", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdGreaterThanOrEqualTo(String value) {
            addCriterion("seller_allowance_id >=", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdLessThan(String value) {
            addCriterion("seller_allowance_id <", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdLessThanOrEqualTo(String value) {
            addCriterion("seller_allowance_id <=", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdLike(String value) {
            addCriterion("seller_allowance_id like", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdNotLike(String value) {
            addCriterion("seller_allowance_id not like", value, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdIn(List<String> values) {
            addCriterion("seller_allowance_id in", values, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdNotIn(List<String> values) {
            addCriterion("seller_allowance_id not in", values, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdBetween(String value1, String value2) {
            addCriterion("seller_allowance_id between", value1, value2, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdNotBetween(String value1, String value2) {
            addCriterion("seller_allowance_id not between", value1, value2, "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeIsNull() {
            addCriterion("seller_allowance_code is null");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeIsNotNull() {
            addCriterion("seller_allowance_code is not null");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeEqualTo(String value) {
            addCriterion("seller_allowance_code =", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeNotEqualTo(String value) {
            addCriterion("seller_allowance_code <>", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeGreaterThan(String value) {
            addCriterion("seller_allowance_code >", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeGreaterThanOrEqualTo(String value) {
            addCriterion("seller_allowance_code >=", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeLessThan(String value) {
            addCriterion("seller_allowance_code <", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeLessThanOrEqualTo(String value) {
            addCriterion("seller_allowance_code <=", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeLike(String value) {
            addCriterion("seller_allowance_code like", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeNotLike(String value) {
            addCriterion("seller_allowance_code not like", value, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeIn(List<String> values) {
            addCriterion("seller_allowance_code in", values, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeNotIn(List<String> values) {
            addCriterion("seller_allowance_code not in", values, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeBetween(String value1, String value2) {
            addCriterion("seller_allowance_code between", value1, value2, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeNotBetween(String value1, String value2) {
            addCriterion("seller_allowance_code not between", value1, value2, "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNull() {
            addCriterion("is_del is null");
            return (Criteria) this;
        }

        public Criteria andIsDelIsNotNull() {
            addCriterion("is_del is not null");
            return (Criteria) this;
        }

        public Criteria andIsDelEqualTo(Integer value) {
            addCriterion("is_del =", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotEqualTo(Integer value) {
            addCriterion("is_del <>", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThan(Integer value) {
            addCriterion("is_del >", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_del >=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThan(Integer value) {
            addCriterion("is_del <", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelLessThanOrEqualTo(Integer value) {
            addCriterion("is_del <=", value, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelIn(List<Integer> values) {
            addCriterion("is_del in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotIn(List<Integer> values) {
            addCriterion("is_del not in", values, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelBetween(Integer value1, Integer value2) {
            addCriterion("is_del between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andIsDelNotBetween(Integer value1, Integer value2) {
            addCriterion("is_del not between", value1, value2, "isDel");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNull() {
            addCriterion("Created_Stime is null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIsNotNull() {
            addCriterion("Created_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeEqualTo(Date value) {
            addCriterion("Created_Stime =", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotEqualTo(Date value) {
            addCriterion("Created_Stime <>", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThan(Date value) {
            addCriterion("Created_Stime >", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Created_Stime >=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThan(Date value) {
            addCriterion("Created_Stime <", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Created_Stime <=", value, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeIn(List<Date> values) {
            addCriterion("Created_Stime in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotIn(List<Date> values) {
            addCriterion("Created_Stime not in", values, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeBetween(Date value1, Date value2) {
            addCriterion("Created_Stime between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andCreatedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Created_Stime not between", value1, value2, "createdStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNull() {
            addCriterion("Modified_Stime is null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIsNotNull() {
            addCriterion("Modified_Stime is not null");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeEqualTo(Date value) {
            addCriterion("Modified_Stime =", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotEqualTo(Date value) {
            addCriterion("Modified_Stime <>", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThan(Date value) {
            addCriterion("Modified_Stime >", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime >=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThan(Date value) {
            addCriterion("Modified_Stime <", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeLessThanOrEqualTo(Date value) {
            addCriterion("Modified_Stime <=", value, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeIn(List<Date> values) {
            addCriterion("Modified_Stime in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotIn(List<Date> values) {
            addCriterion("Modified_Stime not in", values, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andModifiedStimeNotBetween(Date value1, Date value2) {
            addCriterion("Modified_Stime not between", value1, value2, "modifiedStime");
            return (Criteria) this;
        }

        public Criteria andCodeNoIsNull() {
            addCriterion("code_no is null");
            return (Criteria) this;
        }

        public Criteria andCodeNoIsNotNull() {
            addCriterion("code_no is not null");
            return (Criteria) this;
        }

        public Criteria andCodeNoEqualTo(String value) {
            addCriterion("code_no =", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoNotEqualTo(String value) {
            addCriterion("code_no <>", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoGreaterThan(String value) {
            addCriterion("code_no >", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoGreaterThanOrEqualTo(String value) {
            addCriterion("code_no >=", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoLessThan(String value) {
            addCriterion("code_no <", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoLessThanOrEqualTo(String value) {
            addCriterion("code_no <=", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoLike(String value) {
            addCriterion("code_no like", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoNotLike(String value) {
            addCriterion("code_no not like", value, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoIn(List<String> values) {
            addCriterion("code_no in", values, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoNotIn(List<String> values) {
            addCriterion("code_no not in", values, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoBetween(String value1, String value2) {
            addCriterion("code_no between", value1, value2, "codeNo");
            return (Criteria) this;
        }

        public Criteria andCodeNoNotBetween(String value1, String value2) {
            addCriterion("code_no not between", value1, value2, "codeNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoIsNull() {
            addCriterion("batch_extend_no is null");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoIsNotNull() {
            addCriterion("batch_extend_no is not null");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoEqualTo(String value) {
            addCriterion("batch_extend_no =", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoNotEqualTo(String value) {
            addCriterion("batch_extend_no <>", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoGreaterThan(String value) {
            addCriterion("batch_extend_no >", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoGreaterThanOrEqualTo(String value) {
            addCriterion("batch_extend_no >=", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoLessThan(String value) {
            addCriterion("batch_extend_no <", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoLessThanOrEqualTo(String value) {
            addCriterion("batch_extend_no <=", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoLike(String value) {
            addCriterion("batch_extend_no like", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoNotLike(String value) {
            addCriterion("batch_extend_no not like", value, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoIn(List<String> values) {
            addCriterion("batch_extend_no in", values, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoNotIn(List<String> values) {
            addCriterion("batch_extend_no not in", values, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoBetween(String value1, String value2) {
            addCriterion("batch_extend_no between", value1, value2, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoNotBetween(String value1, String value2) {
            addCriterion("batch_extend_no not between", value1, value2, "batchExtendNo");
            return (Criteria) this;
        }

        public Criteria andOpenIdLikeInsensitive(String value) {
            addCriterion("upper(open_id) like", value.toUpperCase(), "openId");
            return (Criteria) this;
        }

        public Criteria andSellerActivityIdLikeInsensitive(String value) {
            addCriterion("upper(seller_activity_id) like", value.toUpperCase(), "sellerActivityId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceIdLikeInsensitive(String value) {
            addCriterion("upper(seller_allowance_id) like", value.toUpperCase(), "sellerAllowanceId");
            return (Criteria) this;
        }

        public Criteria andSellerAllowanceCodeLikeInsensitive(String value) {
            addCriterion("upper(seller_allowance_code) like", value.toUpperCase(), "sellerAllowanceCode");
            return (Criteria) this;
        }

        public Criteria andCodeNoLikeInsensitive(String value) {
            addCriterion("upper(code_no) like", value.toUpperCase(), "codeNo");
            return (Criteria) this;
        }

        public Criteria andBatchExtendNoLikeInsensitive(String value) {
            addCriterion("upper(batch_extend_no) like", value.toUpperCase(), "batchExtendNo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}